package com.kitkat.message.handler;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public abstract class AbstractMessageSender implements MessageSender,InitializingBean{
	@Autowired
	protected MessageHandler messageHandler;

	@Override
	public void afterPropertiesSet() throws Exception {
		this.messageHandler.registerMessageSender(this);
	}
}
